﻿using B.Z.BasicData.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace B.Z.BasicData.API.Write.Application.ExcusedManage
{
    public class ExcuseUpdateOrRemoveCommand:IRequest<APIResult<int>>
    {
        public int Id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public int DepartId { get; set; }
        /// <summary>
        /// 请假类型
        /// </summary>
        public int ExcusedType { get; set; }
        /// <summary>
        /// 请假时间
        /// </summary>
        public DateTime StartDateTime { get; set; }
        public DateTime EndDateTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int TotalHour { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime BackDateTime { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        [MaxLength(140)]
        public string Reason { get; set; }
        /// <summary>
        /// 部门领导名称
        /// </summary>
        public string LeaderName { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int Uid { get; set; }
        /// <summary>
        /// false是修改
        /// true是删除
        /// </summary>
        public bool IsUpdateOrDel { get; set; }
    }
}
